package com.company.creational.builder_patter.builder;

import com.company.creational.builder_patter.product.Actor;

/**
 * 角色建造者
 * @ClassName ActorBuilder
 * @Author tiezheng.han
 * @Date 2020/8/27 11:08
 **/
public abstract class ActorBuilder {

    protected Actor actor = new Actor();

    public abstract void buildType();

    public abstract void bulidSex();

    public abstract void bulidFace();

    public abstract void bulidCostume();

    public abstract void bulidHairstyle();

    /**
     * 工厂方法，返回一个完整的游戏角色对象
     */
    public Actor createActor(){
        return  actor;
    }
}
